package com.asiainfo.demo.service;

import com.asiainfo.demo.dao.DaoFactory;
import com.asiainfo.demo.dao.idao.iCard;
import com.asiainfo.demo.dao.roles.Card;

public class CardManage {
    private static iCard cardDao = DaoFactory.getCardInstance();

    public static boolean CreateCard(Card card){
        boolean flag = false;
        try {
            flag = cardDao.insertCard(card);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return flag;
    }

    public static int findMaxCardID() throws Exception {
        return cardDao.findMaxCardID();
    }

}
